home *** CD-ROM | disk | FTP | other *** search
- Path: oxy.rust.net!usenet
- From: pgunn@mail.cbf.com (Paul Gunn)
- Newsgroups: comp.lang.c++
- Subject: Re: Constructor Exceptions
- Date: Thu, 04 Jan 1996 13:40:51 GMT
- Organization: Rust Net - High Speed Internet in Detroit 810-642-2276
- Message-ID: <4cglh3$6ue@oxy.rust.net>
- References: <4bud9g$pv5@oxy.rust.net> <4cbhcl$kst@dawn.mmm.com> <4ce68n$8u4@sundog.tiac.net>
- NNTP-Posting-Host: pgunn.cbf.com
- X-Newsreader: Forte Agent .99c/32.126
-
- page@tiac.net (Chris Page) wrote:
-
-
- >Sure, they'll clean up 'this', but the programmer is responsible for
- >any and all heap memory allocated within the body of constructor.
-
- My impression was that they did not. I'll try to find the article I
- read -- perhaps I misunderstood the point.
-
- >The solution to this problem is to use the "resource allocation is
- >class initialization" technique, which has been discussed in the news
- >group many time before.
-
- Could you give a brief synopsis of this technique? I may be familiar
- with it, but not by name.
-
- Thanks!
- Paul Gunn
-
-
-
-
-